﻿using System;
using System.Collections.Generic;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using Moq;
using System.Diagnostics;

namespace Opo.Perspective.Core
{
    [TestFixture(Description = "Tests for Opo.Perspective.Core.TagCollection")]
    public class TagCollectionTests
    {
        [TestFixtureSetUp]
        public void Setup()
        {

        }

        [TestFixtureTearDown]
        public void Teardown()
        {

        }

        [Test]
        public void CanAddTagsToCollection()
        {
            TagCollection tagCollection = new TagCollection();
            tagCollection.Add(new Tag("Tag1"));
            tagCollection.Add("Tag2");
            Assert.That(tagCollection[0].TagName, Is.EqualTo("Tag1"));
            Assert.That(tagCollection[1].TagName, Is.EqualTo("Tag2"));
            Assert.That(tagCollection.Count, Is.EqualTo(2));
        }
    }
}
